package com.meilai.project.mapper.finance.paymentReceived;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.meilai.project.entity.finance.paymentReceived.AccountReceived;
import com.meilai.project.vo.finance.paymentReceived.AccountReceivedVO;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDateTime;
import java.util.List;

/**
 * <p>
 * 到款表 Mapper 接口
 * </p>
 *
 * @author xhy
 * @since 2022-12-02
 */
public interface AccountReceivedMapper extends BaseMapper<AccountReceived> {

    List<AccountReceivedVO> page(@Param("page") Page<AccountReceivedVO> page,
                                 @Param("begin_time") LocalDateTime begin_time,
                                 @Param("end_time") LocalDateTime end_time,
                                 @Param("customer_id") Long customer_id,
                                 @Param("user_id") Long user_id);

    int countUnHandled(@Param("user_id") Long user_id);

    List<AccountReceivedVO> queryListByIds(@Param("ids")List<Long> ids);
}
